const api = require('./api.js');

// 授权登录
export const wxLogin = (params) => api.post('api/user/wxLogin', params);
// 微信支付签名
export const wxSign = (params) => api.post('api/pay/pay', params);
// 获取微信手机号
export const getMobile = (params) => api.post('api/user/getPhone', params);
// 发送验证码
export const sendCode = (params) => api.post('api/distribution/send', params);
// 上传图片
export const upImg = (params) => api.post('api/Upload/upload', params);
// 上传图片
export const getPoster = (params) => api.post('api/distribution/invitePoster', params);
// 获取用户分销商状态
export const getDis = (params) => api.post('api/distribution/getApply', params);


/***********我的模块**********/
// 个人中心
export const center = (params) => api.post('api/Mycenter/my_center', params);

// 银行列表
export const bankList = (params) => api.post('api/bank/bank_list', params);

// 银行卡
export const card = (params) => api.post('api/bank/user_bank_list', params);

// 添加银行卡
export const addCard = (params) => api.post('api/bank/save_bank_card', params);

// 解绑银行卡
export const delCard = (params) => api.post('api/bank/delete_bank_card', params);


/******** 分销模块 *******/

// 分销中心
export const groupCenter = (params) => api.post('api/distribution/center', params);

// 我的团队
export const team = (params) => api.post('api/distribution/newTeam', params);

// 提现信息
export const cashInfo = (params) => api.post('api/bank/withdraw_info', params);

// 提现
export const cash = (params) => api.post('api/bank/apply_withdraw', params);

// 佣金明细
export const inComeDetail = (params) => api.post('api/distribution/detailedCommission', params);

// 分享好友
export const share = (params) => api.post('api/Distribution/invite', params);

// 分享好友规则
export const shareRule = (params) => api.post('api/Distribution/rule', params);

// 分销订单
export const disOrder = (params) => api.post('api/distribution/rebateOrder', params);

// 核销管理
export const scanOrder = (params) => api.post('api/writeoff/getWaitList', params);

// 核销详情
export const scandetail = (params) => api.post('api/Writeoff/parseQrCodeData', params);

// 确认核销
export const suredScan = (params) => api.post('api/Writeoff/confirmWriteoff', params);

// 我的资料
export const scanuser = (params) => api.post('api/Distribution/myInfo', params);


/***********订单模块************/

// 套餐订单确认收货
export const vipReceived = (params) => api.post('api/vip/confirmReceipt', params);


// 查看物流
export const lookLogistics = (params) => api.post('api/order/lookLogistics', params);

// 全部评价
export const allEvaluate = (params) => api.post('api/item/getAllEvaluate', params);

// 获取评价
export const getEvaluate = (params) => api.post('api/Evaluate/getAddEvaluate', params);

// 发布评价
export const addEvaluate = (params) => api.post('api/Evaluate/addevaluate', params);

// 拼团中心
export const groupcenter = (params) => api.post('api/Marketing/getGroupBuyGoods', params);

// 拼团详情
export const groupdetail = (params) => api.post('api/Marketing/getGroupBuyDetail', params);

// 更多拼团列表
export const groupmore = (params) => api.post('api/Marketing/getJoinGroupbuyList', params);

// 申请退款
export const makeReback = (params) => api.post('api/order/applyAfterSale', params);

// 代理费支付
export const argentPay = (params) => api.post('api/pay/agentPay', params);

// 完善代理信息
export const updateArgent = (params) => api.post('api/Distribution/updateStore', params);

// 店铺列表
export const storelist = (params) => api.post('api/Order/list_address', params);

// 关于我们
export const aboutus = (params) => api.post('api/mycenter/getRule', params);

// 售后订单列表
export const reorderlist = (params) => api.post('api/order/getAfterSaleLists', params);

// 售后订单详情
export const reorderdetail = (params) => api.post('api/order/getAfterSaleDetail', params);

// 指南列表
export const guidelist = (params) => api.post('api/article/news', params);

// 指南详情
export const guidedetail = (params) => api.post('api/article/newsDetails', params);

// 售后页面
export const reback = (params) => api.post('api/order/getApplyAfterSaleInfo', params);

// 取消售后申请
export const cancelReback = (params) => api.post('api/order/cancelRefund', params);

// 拼团 他人视角
export const others = (params) => api.post('api/Marketing/groupbuying', params);

// 获取模板id
export const modalIds = (params) => api.post('api/common/getTemplateList', params);

// 更新用户信息
export const updataInfo = (params) => api.post('api/user/updateUserInfo', params);

// 更新用户信息
export const updataIn = (params) => api.post('api/user/decryptUserInfo', params);

// 校园专区首页
export const schooles = (params) => api.post('api/school/school_home', params);

// 校园专区购物车
export const schoolcart = (params) => api.post('api/item/getItemLists', params);

// 校园专区购物车删除商品
export const scartDel = (params) => api.post('api/item/delShopingCart', params);

// 校园专区购物车商品数量变化
export const scartEdit = (params) => api.post('api/item/addShopingCartNums', params);

// 校园专区商品详情
export const sdetail = (params) => api.post('api/item/getItemDetail', params);